package com.isaac.actm.util;

import org.hamcrest.Description;
import org.jmock.api.Action;
import org.jmock.api.Invocation;
import com.isaac.actm.domain.pojo.User;

public class SaveUserAction implements Action {
    public Object invoke(Invocation invocation) throws Throwable {
        ((User)invocation.getParameter(0)).setId(PojoInstanceFactory.USER_ID);
        return null;
    }

    public void describeTo(Description arg0) {
    }

}